package com.jiyun.login.feign;

import com.jiyun.pojo.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("day15Train")
public interface FeignTrainService {
    @RequestMapping("train/trainCount")
    Result trainCount(@RequestParam(value = "consumerId") Integer consumerId);
    @RequestMapping("train/courseCount")
    Result courseCount(@RequestParam(value = "consumerId") Integer consumerId);
    @RequestMapping("train/findAllTime")
    Result findAllTime();
    @RequestMapping("train/TrainById")
    public Result TrainById(@RequestParam(value = "tid") Integer tid);
    @RequestMapping("trainCourse/findByCId")
    public Result findByCId(@RequestParam(value = "consumerId") Integer consumerId);
}
